//机构管理模块API

import axios from '../axios'

//保存机构
export const save = (data) => {
  return axios({
    url: '/dept/save',
    method: 'post',
    data: data
  })
};

//删除机构
export const batchDelete = (data) => {
  return axios({
    url: '/dept/delete',
    method: 'post',
    data: data
  })
};

//查询机构树
export const findTree = () => {
  return axios({
    url: '/dept/findTree',
    method: 'get'
  })
};
